/*
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2023-11-28 15:48:43
 * @LastEditors: xinqiao lxq1990.0716@qq.com
 * @LastEditTime: 2024-01-23 15:08:54
 * @FilePath: \partal\src\stores\componentPlant.ts
 * @Description: 全局组件平台（PC端、移动端、小程序端、H5端）
 */

import { ref } from 'vue'
import { defineStore } from 'pinia'
import { PLANTTYPE_ENUM } from '@/enum/globalEnum'

export const usePlant = defineStore('componentPlant', () => {
  const plantType = ref(PLANTTYPE_ENUM.PC)

  const setPlantType = (val: PLANTTYPE_ENUM) => plantType.value = val

  return { plantType, setPlantType }
})
